<%@ include file="../base.jsp"%>
<%@ include file="../checkLogin.jsp"%>

<head>
<title>Cadastro de Empresas</title>
</head>
<body>
<a class="backButton" href="${pageContext.request.contextPath}/pages/menu.jsp"><s:text name="button.back"/></a>
<div class="boxHeader">
<h2  class="formTitle">
	<s:text name="empresa.title" />
</h2>
<p class="formInstructions" style="border-bottom: 1px solid #AAA;">
	<s:text name="empresa.instructions" />
</p>
</div>
	<s:form action="sendEmpresaInsert" method="post" namespace="/">
		<s:textfield name="razaoSocial" key="empresa.razaoSocial" size="20"></s:textfield>
		<s:textfield name="nomeFantasia" key="empresa.nomeFantasia" size="20"></s:textfield>
		<s:textfield name="cnpj" key="empresa.cnpj" size="20"></s:textfield>
		<s:textfield name="inscricaoEstadual" key="empresa.inscricaoEstadual" size="20"></s:textfield>
		<s:textfield name="telefone1" key="empresa.telefone1" size="20"></s:textfield>
		<s:textfield name="telefone2" key="empresa.telefone2" size="20"></s:textfield>
		<s:textfield name="email" key="empresa.email" size="20"></s:textfield>

		<s:submit method="execute" key="button.submit" align="center" />
	</s:form>

	<s:if test="hasActionErrors()">
		<div align="center">
			<div class="ui-state-error ui-corner-all"
				style="padding: 0 .7em; width: 30%; margin: 3em; box-shadow:0px 0px 20px #a33;">
				<span class="ui-icon ui-icon-alert"
					style="float: left; margin-right: .3em;"></span>
				<s:actionerror />
			</div>
		</div>
	</s:if>
	<s:if test="hasActionMessages()">
		<div align="center">
			<s:actionmessage/>
		</div>
	</s:if>

</body>
